package com.ddwl.schema.bo.order;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * @author Fu Zhaohui
 * @date 2015/12/14
 */
@ApiModel(description = "购物车商品Bo")
@Setter
@Getter
public class CartItemBo {
    @ApiModelProperty("商品数量")
    @NotNull(message = "数量为空")
    @Min(value = 1, message = "商品数量不能少于1")
    private Integer itemQty;
    @ApiModelProperty("商品ID")
    @NotNull(message = "商品为空")
    private String itemId;
    @ApiModelProperty("子商品ID")
    private String skuId;
    @ApiModelProperty("是否钩选")
    private Boolean checked;
    @ApiModelProperty("商户ID")
    private String mchId;
    @ApiModelProperty("门店ID")
    private String shopId;
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userId;
    @ApiModelProperty(value = "所属产品", hidden = true)
    private String product;
}
